home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: can't get system calls to work vis c ver 1
- Date: 4 Apr 1996 08:06 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <4APR199608061513@erich.triumf.ca>
- References: <828623397.22462@snowone.demon.co.uk>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <828623397.22462@snowone.demon.co.uk>, merv@snowone.demon.co.uk (snowone) writes...
-
- >can anyone help me. I have msvc version one and i'm trying to get
- >this program working
- >
- >#include <process.h>
- >
- >void main()
- >{
- > system("dir");
- >}
- >
- >Will not compile. Says on linking _system is undeclared
- >(note at first would not compile until #undef _WINDOWS)
- >
- >have libraries oldnames, libw and mlibcewq
-
- It is very likely that system() cannot be used under Windows, since you say it
- wouldn't compile until you die #undef _WINDOWS.
-
- Look in the library reference to see _if_ system() is mentioned, and, if it is,
- if there is any restriction on its use under Windows.
-
- There may be some Windows-specific call to do this....
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-
-
-
-
-